
// class HeaderBar extends React.Component {

// }

class Person {
  constructor({ name = 'devin', age = '123' }) {
    console.log(name, 'name')
    // this.name = name;
    // this.age = age;
    // this.getName = () => {
    //   console.log('constructor')
    // 
  }

  getName() {
    console.log('getName')
  }

  getAge() {
  }
}

let p = new Person({ name: 123, age: 3232 })
let p = new Person({ name: 123, age: 3232 })
let p = new Person({ name: 123, age: 3232 })
let p = new Person({ name: 123, age: 3232 })
let p = new Person({ name: 123, age: 3232 })
console.log(p.getName(), 'p')